finding the tangent equation